$(document).ready(function () {
	getBags();
});
function getBags() {
	$.ajax({type:'post',url:SITE_PATH+'admin/control/bagPull',success:function(j) {
		var listHtml = '';
		for(var k in j.bags) {
			var bag = j.bags[k];
			listHtml += '<tr><td class="id">'+bag.id+'</td><td>'+bag.code+'</td><td>'+bag.commission+'</td><td>'+bag.time_add+'</td><td>'+bag.state+'</td><td>'+bag.user_id+'</td></tr>';
		}
		$('#listTBody').html(listHtml);
	}});
}

